﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class01
{
    class rectangle
    {


        public double r { get; set; }

        public rectangle() { }


        public void Sculuer()
        {
            Console.WriteLine("圆的面积为{0}", this.r * this.r * 3.14);
        }



        public double a{ get; set; }
        public double b { get; set; }

        public rectangle(double a1,double b1) {
            this.a = a1;
            this.b = b1;
        }

        public void Srectangle() {
            Console.WriteLine("长方形的面积为{0}",this.a*this.b);
        }
    }
}
